import { OtherDetailParams } from "@/interface/public";
import { Material } from "./basic";

// 撕碎
export namespace RiveIn {
  // 撕碎投入
  export interface Save {
    itemId: number;
    line: string;
  }

  // 明细查询
  export interface SearchDetail extends OtherDetailParams {
    records: SearchDetailProp[];
  }

  // 明细参数
  export interface SearchDetailProp extends Material.M_SearchProp {
    id: number;
    workerId: number;
    line: string;
    sourceId: number;
    packageType: string;
    packageNum: number;
    materialId: number;
    materialObj: Material.SearchProp;
    sumWeight: number;
    tareWeight: number;
    netWeight: number;
    remark: string;
    douser: string;
    dotime: string;
    uptime: string;
    materialInfo: string;
  }
}

export namespace RiveOut {
  // 保存
  export interface Save {
    workerId: string;
    line: string;
    packageType: string;
    packageNum: string;
    materialId: string;
    c_cname?: string;
    sumWeight: string;
    tareWeight: string;
    netWeight: string | number;
    remark: string;
  }
}
